package com.weichuanbo.xwdz.mvp.model.entity;

import java.io.Serializable;

/**
 * Created by ssy on 2018/8/10 15:08
 * E-Mail ：1161209667@qq.com
 */
public class RequestMatchingbean {

    /**
     * app_id : 101
     * peer : {"age":{"max":25,"min":18},"distance":{"max":16,"min":0},"sex":{"max":0,"min":0}}
     * self : {"address":{"latitude":39.92,"longitude":116.46},"age":23,"room_id":1004,"sex":1}
     * u_uid : 2
     * app_sub_id : 1001
     * game_difficulty : 1
     * match_type : 0
     * token :
     */

    private int app_id;
    private PeerBean peer;
    private SelfBean self;
    private int u_uid;
    private String openid;
    private int app_sub_id;
    private int game_difficulty;
    private int match_type;
    private String token;
    private int u_uid_b;

    public RequestMatchingbean() {
        peer=new RequestMatchingbean.PeerBean();     // 在创建一个body里的匹配条件的东东
        self =new RequestMatchingbean.SelfBean();  // ;//在创建一个body里的自身条件的东东
    }

    public int getU_uid_b() {
        return u_uid_b;
    }

    public void setU_uid_b(int u_uid_b) {
        this.u_uid_b = u_uid_b;
    }

    public int getApp_id() {
        return app_id;
    }

    public void setApp_id(int app_id) {
        this.app_id = app_id;
    }

    public PeerBean getPeer() {
        return peer;
    }

    public void setPeer(PeerBean peer) {
        this.peer = peer;
    }

    public SelfBean getSelf() {
        return self;
    }

    public void setSelf(SelfBean self) {
        this.self = self;
    }

    public int getU_uid() {
        return u_uid;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public void setU_uid(int u_uid) {
        this.u_uid = u_uid;
    }

    public int getApp_sub_id() {
        return app_sub_id;
    }

    public void setApp_sub_id(int app_sub_id) {
        this.app_sub_id = app_sub_id;
    }

    public int getGame_difficulty() {
        return game_difficulty;
    }

    public void setGame_difficulty(int game_difficulty) {
        this.game_difficulty = game_difficulty;
    }

    public int getMatch_type() {
        return match_type;
    }

    public void setMatch_type(int match_type) {
        this.match_type = match_type;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public static class PeerBean implements Serializable{
        public PeerBean() {
            this.age= new AgeBean();
            this.sex = new SexBean();
            this.distance = new DistanceBean();
        }

        /**
         * age : {"max":25,"min":18}
         * distance : {"max":16,"min":0}
         * sex : {"max":0,"min":0}
         */

        private AgeBean age;
        private DistanceBean distance;
        private SexBean sex;

        public AgeBean getAge() {
            return age;
        }

        public void setAge(AgeBean age) {
            this.age = age;
        }

        public DistanceBean getDistance() {
            return distance;
        }

        public void setDistance(DistanceBean distance) {
            this.distance = distance;
        }

        public SexBean getSex() {
            return sex;
        }

        public void setSex(SexBean sex) {
            this.sex = sex;
        }

        public static class AgeBean implements Serializable{
            /**
             * max : 25
             * min : 18
             */

            private int max;
            private int min;

            public int getMax() {
                return max;
            }

            public void setMax(int max) {
                this.max = max;
            }

            public int getMin() {
                return min;
            }

            public void setMin(int min) {
                this.min = min;
            }
        }

        public static class DistanceBean implements Serializable{
            /**
             * max : 16
             * min : 0
             */

            private int max;
            private int min;

            public int getMax() {
                return max;
            }

            public void setMax(int max) {
                this.max = max;
            }

            public int getMin() {
                return min;
            }

            public void setMin(int min) {
                this.min = min;
            }
        }

        public static class SexBean implements Serializable{
            /**
             * max : 0
             * min : 0
             */

            private int max;
            private int min;

            public int getMax() {
                return max;
            }

            public void setMax(int max) {
                this.max = max;
            }

            public int getMin() {
                return min;
            }

            public void setMin(int min) {
                this.min = min;
            }
        }
    }

    public static class SelfBean {
        public SelfBean() {
            address = new AddressBean();
        }

        /**
         * address : {"latitude":39.92,"longitude":116.46}
         * age : 23
         * room_id : 1004
         * sex : 1
         */

        private AddressBean address;
        private int age;
        private int room_id;
        private int sex;

        public AddressBean getAddress() {
            return address;
        }

        public void setAddress(AddressBean address) {
            this.address = address;
        }

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }

        public int getRoom_id() {
            return room_id;
        }

        public void setRoom_id(int room_id) {
            this.room_id = room_id;
        }

        public int getSex() {
            return sex;
        }

        public void setSex(int sex) {
            this.sex = sex;
        }

        public static class AddressBean {
            /**
             * latitude : 39.92
             * longitude : 116.46
             */

            private double latitude;
            private double longitude;

            public double getLatitude() {
                return latitude;
            }

            public void setLatitude(double latitude) {
                this.latitude = latitude;
            }

            public double getLongitude() {
                return longitude;
            }

            public void setLongitude(double longitude) {
                this.longitude = longitude;
            }
        }
    }

}
